package cn.cmcc.s2a.action;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.InterceptorRef;

import com.opensymphony.xwork2.ActionSupport;

public class ChainTestAction extends ActionSupport {
	private static final long serialVersionUID = -3829754872275764773L;

	@Action("foo")
	public String foo() {
		System.out.println("ChainTestAction--------foo");
		return "bar";
	}

	@Action("foo-bar")
	public String bar() {
		System.out.println("ChainTestAction--------bar");
		return SUCCESS;
	}

	@Action(interceptorRefs = @InterceptorRef(value = "validation", params = {
			"programmatic", "false", "declarative", "true" }))
	public String execute() {
		return SUCCESS;
	}

	@Action("url")
	public String doSomething() {
		return SUCCESS;
	}
}